package cn.qn.moudle.sys;

import lombok.Data;
import org.hibernate.annotations.Proxy;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * @Auther: Bryant
 * @Date: 2018/5/28
 * @Description: 城市
 */
@Entity(name = "sys_city")
@Data
@Table(appliesTo  = "sys_city",comment="城市")
@Proxy(lazy=false)
public class City implements Serializable {

    private static final long serialVersionUID = -4244466653034234815L;
    @Id
    @Column(name = "code" ,columnDefinition="varchar(20) COMMENT '城市编号'")
    private String code;

    @Column(name = "name",columnDefinition="varchar(50) COMMENT '城市名称'")
    private String name;

    @Column(name = "province_code" ,columnDefinition="varchar(20) COMMENT '省份编号'")
    private String provinceCode;
}
